package cqut.gbq.qimo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName ResBean
 * @Description TODO
 * @Author guobenqi
 * @Date 2021/6/16 14:05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResBean {
    private long code;
    private String message;
    private Object obj;

    public static ResBean success(String message){
        return new ResBean(200,message,null);
    }
    public static ResBean success(String message,Object obj){
        return new ResBean(200,message,obj);
    }
    public static ResBean error(String message){
        return new ResBean(500,message,null);
    }

    public static ResBean error(String message,Object obj){
        return new ResBean(500,message,obj);
    }
}
